home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 67 / IOPROG_67A.ISO / soft / Tools / mwsppv4.exe / INSERT GETBOOKMARKCOUNT.SCRIPT < prev    next >
Encoding:
Text File  |  2001-03-16  |  561 b   |  26 lines

  1. !!Script
  2. // Copyright ⌐ 1997-2001 - Modelworks Software
  3.  
  4. // Insert script helper for:
  5.  
  6. /**
  7. @Object: Editor 
  8. @Method: getBookmarkCount() returns the number of bookmarks
  9. in this editor.
  10. @Syntax: editor.getBookmarkCount()
  11. @Summary: getBookmarkCount - returns the number of bookmarks
  12. */
  13.  
  14. function DoCommand()
  15. {
  16.   var editor = getActiveEditor();
  17.   if (editor)
  18.   {
  19.     var selection = editor.getSelection();
  20.     editor.replace("editor.getBookmarkCount();", selection);
  21.     editor.setActive("Insert editor.getBookmarkCount");
  22.   }
  23. }
  24.  
  25. !!/Script
  26.